package com.archive.bean;

import java.util.Date;

public class Archive {
    public Archive() {}

    private Archive(Builder builder) {
        this.fileNumber = builder.fileNumber;
        this.fileTitle = builder.fileTitle;
        this.fillingDate = builder.fillingDate;
        this.userId = builder.userId;
        this.animalId = builder.animalId;
        this.fileState = builder.fileState;
        this.dailyDataTip = builder.dailyDataTip;
        this.file = builder.file;
    }

    /**
     * 档案编号
     */
    private String fileNumber;
    /**
     * 档案名称
     */
    private String fileTitle;
    /**
     * 填写日期
     */
    private Date fillingDate;
    /**
     * 用户编号
     */
    private String userId;
    /**
     * 动物编号
     */
    private String animalId;

    private String fileState;
    /**
     * 信息备注
     */
    private String dailyDataTip;

    private String file;

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        /**
         * 档案编号
         */
        private String fileNumber;
        /**
         * 档案名称
         */
        private String fileTitle;
        /**
         * 填写日期
         */
        private Date fillingDate;
        /**
         * 用户编号
         */
        private String userId;
        /**
         * 动物编号
         */
        private String animalId;

        private String fileState;
        /**
         * 信息备注
         */
        private String dailyDataTip;

        private String file;

        public Builder fileNumber(String fileNumber) {
            this.fileNumber = fileNumber;
            return this;
        }

        public Builder fileTitle(String fileTitle) {
            this.fileTitle = fileTitle;
            return this;
        }

        public Builder fillingDate(Date fillingDate) {
            this.fillingDate = fillingDate;
            return this;
        }

        public Builder userId(String userId) {
            this.userId = userId;
            return this;
        }

        public Builder animalId(String animalId) {
            this.animalId = animalId;
            return this;
        }

        public Builder fileState(String fileState) {
            this.fileState = fileState;
            return this;
        }

        public Builder dailyDataTip(String dailyDataTip) {
            this.dailyDataTip = dailyDataTip;
            return this;
        }

        public Builder file(String file) {
            this.file = file;
            return this;
        }

        public Archive build() {
            return new Archive(this);
        }
    }



    public String getFileNumber() {
        return fileNumber;
    }

    public void setFileNumber(String fileNumber) {
        this.fileNumber = fileNumber;
    }

    public String getFileTitle() {
        return fileTitle;
    }

    public void setFileTitle(String fileTitle) {
        this.fileTitle = fileTitle;
    }

    public Date getFillingDate() {
        return fillingDate;
    }

    public void setFillingDate(Date fillingDate) {
        this.fillingDate = fillingDate;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAnimalId() {
        return animalId;
    }

    public void setAnimalId(String animalId) {
        this.animalId = animalId;
    }

    public String getFileState() {
        return fileState;
    }

    public void setFileState(String fileState) {
        this.fileState = fileState;
    }

    public String getDailyDataTip() {
        return dailyDataTip;
    }

    public void setDailyDataTip(String dailyDataTip) {
        this.dailyDataTip = dailyDataTip;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }
}
